package diaosidadui.opp04;

public class TestBook {
    public static void main(String[] args) {
        Book book1 = new Book("book1",39.5);
        Book book2 = new Book("book2",139.9);
        Book book3 = new Book("book3",99.5);


        String maxPriceName= book1.getPrice()>book2.getPrice()?book1.getName():
                (book2.getPrice()>book3.getPrice()?book2.getName():book3.getName());
        System.out.println(maxPriceName);
    }
}
